from django.template import RequestContext
from django.shortcuts import render_to_response
import datetime

def current_datetime(request):
	current_date = datetime.datetime.now()
	return render_to_response('html/current_datetime.html', locals())
	
def hours_ahead(request, offset):
	offset = int(offset)
	dt = datetime.datetime.now() + datetime.timedelta(hours=offset)
	return render_to_response('html/time_delta.html', locals())
	
def welcome(request):
	return render_to_response('html/home.html', context_instance=RequestContext(request))
	
def submitted(request):
	#display the info they provided
	return render_to_response('html/submitted.html', context_instance=RequestContext(request))
